package edu.nf.llmtest.web;

import edu.nf.llmtest.model.entity.Type;
import edu.nf.llmtest.service.TypeService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ Author bin
 * @ Create  2025/11/13 11:42
 **/
@RestController
@RequestMapping(value = "/type")
@RequiredArgsConstructor
public class TypeController {
    private final TypeService typeService;

    @GetMapping(value = "/list")
    public List<Type> listType(){
        return typeService.listTypeFromRedis();
    }
}
